package com.albaba.designpattern.observer.text_003;

import com.albaba.designpattern.observer.text_002.LotteryResult;

/**
 * @Description: 短信发送事件监听类
 * @Author zx
 * @Date 2025/2/24 15:55
 * @Version 1.0
 */
public class MessageEventListener implements EventListener {
    @Override
    public void doEvent(LotteryResult result) {
        System.out.println("发送短信通知，用户ID:" + result.getuId() + ",您的摇号结果为：" +
                result.getMsg());
    }
}
